package com.example.hulixia.myapplication;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;

/**
 * Created by hulixia on 2018/9/27.
 */

class ActivityB extends Activity {
    private Button btnstartC;
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_b);

        btnstartC= btnstartC.findViewById(R.id.btnStartC);
        btnstartC.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent =new Intent(ActivityB.this,ActivityC.class);
                startActivity(intent);
            }
        });
    }
}
